Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max connections, stats refresh and weighted backends #29

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sauzher
Copy link

@sauzher sauzher commented Aug 25, 2022

Adds two enviroment parameters MAX_CONN, STATS_REFRESH and the possibility to add a weight to backends when specified as remote host in the BACKENDS variable.

-e MAX_CONN="4" will caps 4 connection on each backend
-e STATS_REFRESH="5s" will enable auto refresh of the stats page every 5 seconds
-e BACKENDS "192.168.10.10:8080:4 192.168.20.10:8080:1" will apply a tuning to load balancer algorithm (4 times more hit on the first server)

:weight is optional anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant